package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.service.ICommentService;
import springbootyx.entity.Comment;
import springbootyx.mapper.ICommentMapper;
@Service

public class CommentService implements ICommentService {

    @Autowired
    private ICommentMapper commentMapper;


    @Override
    public void addComment(Comment comment) {
        commentMapper.addComment(comment);
    }

    @Override
    public void deleteCommentBiFid(int fid) {
        commentMapper.deleteCommentBiFid(fid);
    }
}
